﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.DependencyInjection.Impl;

namespace StyleMVVM.DependencyInjection.Conditions
{
	public class ExportWhenTargetHasAttribute : Attribute, IExportConditionAttribute
	{
		private Type attributeType;

		public ExportWhenTargetHasAttribute(Type attributeType)
		{
			this.attributeType = attributeType;
		}

		public IExportCondition ProvideCondition(Type exportType)
		{
			return new WhenTargetHas(attributeType);
		}
	}
}